const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // 身份令牌
  username: state => state.user.userInfo && state.user.userInfo.username, // 用户名
  userId: state => state.user.userInfo && state.user.userInfo.userId, // 用户id
  staffPhoto: state => state.user.userInfo && state.user.userInfo.staffPhoto, // 用户头像
  hrsaasTime: state => state.user.hrsaasTime, // 登录时间戳
  companyId: state => state.user.userInfo && state.user.userInfo.companyId, // 公司Id
  menus: state => state.user.userInfo && state.user.userInfo.roles.menus, // 用户菜单
  points: state => state.user.userInfo && state.user.userInfo.roles.points // 按钮权限
}
export default getters
